<SplashPage as |Page|>
  <Page.header>
    <h1 class="title is-3">
      Unseal OpenBao
    </h1>
  </Page.header>
  <Page.content>
    <div class="box is-borderless is-shadowless is-marginless">
      <p class="title is-5">
        {{capitalize this.model.name}}
        is
        {{if this.model.unsealed "unsealed" "sealed"}}
      </p>
      <p>
        Unseal OpenBao by entering portions of the unseal key. This can be done via multiple mechanisms on multiple
        computers. Once all portions are entered, the root key will be decrypted and OpenBao will unseal.
      </p>
    </div>
    <ShamirFlow
      @action="unseal"
      @onShamirSuccess={{action "transitionToCluster"}}
      @buttonText="Unseal"
      @thresholdPath="t"
      @isComplete={{action "isUnsealed"}}
      @threshold={{this.model.sealThreshold}}
      @progress={{this.model.sealProgress}}
    />
  </Page.content>
  <Page.footer>
    <div class="box is-borderless is-shadowless">
      <p>
        <DocLink @path="/docs/concepts/seal">
          Seal/unseal documentation
        </DocLink>
      </p>
    </div>
  </Page.footer>
</SplashPage>